
<table id="cart_table" class="tablesorter">
<thead>
    <tr>
      <th>Name</th>
      <th>Size</th>
      <th>Description</th>
      <th>Category</th>
      <th>Remove Cart</th>
    </tr>
</thead>
<tbody id="tablecontent">
<% if session[:cart] %>
<% for equipment in session[:cart] %>
    <tr>
        <td>
            <%= equipment.name %>
        </td>
        <td>
            <%= equipment.size %>
        </td>
        <td>
            <%= equipment.description %>
        </td>
        <td>
            <%= equipment.category %>
        </td>
        <td>
            <%= link_to "[X]", {:action => "remove_from_cart", :id => equipment.id}, :method => :post %>
        </td>
    </tr>
<% end end %>
</tbody>
</table>

<script type="text/javascript">
    $("#cart_table").tablesorter();
</script>

